<%--
  Created by IntelliJ IDEA.
  User: 31984
  Date: 2017/11/29
  Time: 14:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>部门全新管理</title>
</head>
<%@include file="/WEB-INF/jsp/header.jsp"%>
<div class="panel-body">
    <a class="add1 btn btn-info" href="javascript:void(0)" title="添加部门"><i class="glyphicon glyphicon-plus"></i> 添加部门</a>
    <a class="add2 btn btn-info" href="javascript:void(0)"  title="添加角色"><i class="glyphicon glyphicon-plus"></i> 添加角色</a>
    <button type="button" class="btn btn-danger" onclick="grant()"><i class="glyphicon glyphicon-grain"></i>管理授权</button>
</div>
</div>
<table id="functionTable"
       data-url="${ctx}/sys/function/list"
       data-toggle="table"
       data-toolbar="#toolbar"
       data-toolbar-align="left"
       data-detail-view="true"
       data-detail-formatter="detail">
    <thead>
    <tr>
        <th data-radio="true"></th>
        <th data-field="deId">功能编号</th>
        <th data-field="deName">功能名称</th>
        <th data-formatter="fmtOpt" data-events="optEvents">操作</th>
    </tr>
    </thead>
</table>
</div>



<!-- 添加父级权限 -->
<div id="menu_level01">
    <form class="form-horizontal" id="menuEdit01">
        <input type="hidden" id="deId" name="deId">
        <div class="form-group">
            <label for="functionName" class="col-sm-2 col-sm-offset-2 control-label">功能名称</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="functionName" name="deName" placeholder="functionName">
            </div>
        </div>
    </form>
</div>
<!-- 添加子级权限 -->
<div id="menu_level02">
    <form class="form-horizontal" id="menuEdit02">
        <input type="hidden" id="funcIds" name="roleId">
        <div class="form-group">
            <label for="parentId" class="col-sm-3 col-sm-offset-1 control-label">请选择父级菜单</label>
            <div class="col-sm-5">
                <select name="deId" id="parentId" class="form-control">
                    <option value="0">请选择</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label for="functionName" class="col-sm-2 col-sm-offset-2 control-label">名称</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="functionNames" name="roleName" placeholder="functionName">
            </div>
        </div>
    </form>
</div>

<div id="grant">
    <div id="tree">
    </div>
</div>
<%@include file="/WEB-INF/jsp/footer.jsp"%>
<%@include file="/WEB-INF/jsp/sys/modalandjs.jsp"%>
<script src="${ctx}/res/js/syspower.js" type="text/javascript"></script>
</body>
</html>
